FROM jdk

MAINTAINER Eric
ENV LANG en_US.UTF-8

RUN mkdir -p /opt/mall-service/
RUN chmod -R 777 /opt/mall-service/
COPY ./mall-service-0.0.1-SNAPSHOT.jar /opt/mall-service/mall-service-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-Xms256m", "-Xmx1024m", "-jar", \
        "-Dcom.sun.management.jmxremote.port=29013", \
        "-Dcom.sun.management.jmxremote.rmi.port=29013", \
        "-Dcom.sun.management.jmxremote=true", \
        "-Dcom.sun.management.jmxremote.ssl=false",\
        "-Dcom.sun.management.jmxremote.authenticate=false", \
        "-Djava.rmi.server.hostname=192.168.3.31", \
         "/opt/mall-service/mall-service-0.0.1-SNAPSHOT.jar"]
EXPOSE 9013
